const mongoose = require("./core")

let ArticleCateSchema = mongoose.Schema({
    title: { type: String },
    link: {
        type: String
    },
    pid: {   // 混合类型
        type: mongoose.Schema.Types.Mixed
    },
    sub_title: { type: String },    // seo优化
    keywords: { type: String },     // seo优化
    description: { type: String },  // seo优化
    status: {
        type: Number,
        default: 1
    },
    sort: {
        type: Number,
        default: 100
    },
    add_time: {
        type: Number
    }
})
module.exports = mongoose.model("ArticleCate", ArticleCateSchema, "article_cate")